<?php
namespace App\Adshopuser\Controllers;
use App\Adshopuser\Models\BShopAppConfig;
use App\Adshopuser\Models\BShopGoodsCategory;
use App\Adshopuser\Models\BShopGoods;
use App\Adshopuser\Models\BShopGoodsComment;
use App\Adshopuser\Models\BShopSkuValue;
use App\Adshopuser\Models\BShopGoodsSku;
use App\Adshopuser\Models\BShopSkuModel;
use App\Adshopuser\Models\BShopSkuModelKey;
use App\Adshopuser\Models\BShopSkuKey;
use App\Adshopuser\Models\BshopUsersInfo;
use Common\Common;
use Common\ControllerAdshopBase;
use Common\Models\BShopUsers;
use Phalcon\Paginator\Adapter\Model as PaginatorModel;

class CommentController extends ControllerAdshopBase
{

    public function initialize()
    {
        parent::initialize();
    }


    public function commentlistAction(){
        if(!isset($this->params['page']) || empty($this->params['page'])){
            $this->params['page'] = 1;
        }
        if(!isset($this->params['limit']) || empty($this->params['limit'])){
            $this->params['limit']=10;
        }
        $this->params['shop_id'] = $this->user_admin['id'];
        $BShopGoodsCommentDb = new BShopGoodsComment();
        $get_list = $BShopGoodsCommentDb->get_list($this->params);
        $this->ok($get_list);

    }

}
